<ion-view view-title="我的订单" class="home-wrap order mine-order-wrap" ng-init="intiOrderDetail(0)">
    <ion-header-bar class="bar bar-header bar-stable">
        <button class="button back-button buttons button-clear header-item" ui-sref="tab.info">
            <i class="icon ion-ios-arrow-back"></i>
        </button>
        <h1 class="title">我的订单</h1>
    
    </ion-header-bar>
        <div class="bar bar-subheader order-state" style="position: fixed;top: 44px;left: 0;background-image: none;">
            <p class="actived" ng-click="jumpTab(0)">全部</p>
            <p ng-click="jumpTab(1)">待付款</p>
            <p ng-click="jumpTab(2)">已付款</p>
            <p ng-click="jumpTab(3)">已完成</p>
        </div>
    <ion-content style="top: 88px!important;">
        <p ng-if="!orderState" style="padding:15px 0;text-align:center">暂无订单</p>
        <!--row-->
        <div class="order-row-wrap" ng-repeat="orderInfo in orderState | orderBy:'-date_added'">
            <div ng-if="orderInfo.project=='1'">
                <div class="label-wrap list" ng-click="gotoUserdetail(orderInfo.id)">
                 <a class="item item-icon-left item-icon-right listtitle">
                    <i class="icon iconfont icon-note grayC"></i>
                    {{orderInfo.oneday[0].title}}
                    <i class="icon iconfont icon-arrow-right f15"></i>
                  </a>
                </div>
                <div class="order-img-wrap">
                    <div class="order-img disline">
                        <img ng-src="{{fullPath(orderInfo.oneday[0].banners[0])}}">  
                    </div>
                    <div class="order-img-info disline">
                        {{orderInfo.oneday[0].description}}
                    </div>
                    <div class="order-img-price disline">
                        ￥{{orderInfo.oneday[0].four_price}}起
                    </div>
                </div>
                <a class="item item-icon-left item-icon-right count-wrap">
                   <p>
                    <span ng-if="orderInfo.status==2">已取消</span>
                    <span ng-if="orderInfo.status==4">退款中</span>
                    <span ng-if="orderInfo.status==7">已退款</span>
                    </p>
                   <p>合计:<span class="orange">￥{{orderInfo.order_price}}</span></p>
                </a>
                <div class="total-state" ng-hide="orderInfo.status==4">
                   <button ng-if="orderInfo.status==1" ng-click="cancelOrder(orderInfo)">取消订单</button>
                   <button ng-if="orderInfo.status==2||orderInfo.status==6||orderInfo.status==7" ng-click="deleteOrder(orderInfo)">删除订单</button>
                   <!-- <button ng-if="orderInfo.status==3" ng-click="cancelOrder(orderInfo)">申请退款</button> -->
                   <button class="greenC border-green" ng-if="orderInfo.status==1" style="padding:3px 20px;"  ui-sref="tab.userdetail({oneday:true,id:orderInfo.id})">去支付</button>
                </div>
            </div>
            <div ng-if="orderInfo.project=='2'">
                <div class="label-wrap list" ng-click="gotoUserdetail(orderInfo.id)">
                 <a class="item item-icon-left item-icon-right listtitle">
                    <i class="icon iconfont icon-note grayC"></i>
                    上海迪斯尼度假区
                    <i class="icon iconfont icon-arrow-right f15"></i>
                  </a>
                </div>
                <div class="order-img-wrap">
                    <div class="order-img disline">
                        <img src="img/ticketlogo.jpg">  
                    </div>
                    <div class="order-img-info disline">
                       上海迪士尼 <span ng-bind="ticketType(orderInfo.contacts[0].contact_type)"></span>
                    </div>
                    <!-- <div class="order-img-price disline">
                        ￥500起
                    </div> -->
                </div>
                <a class="item item-icon-left item-icon-right count-wrap">
                   <p>
                    <span ng-if="orderInfo.status==2">已取消</span>
                    <span ng-if="orderInfo.status==3">出票中</span>
                    <span ng-if="orderInfo.status==4">退款中</span>
                    <span ng-if="orderInfo.status==5">已出票</span>
                    <span ng-if="orderInfo.status==7">已退款</span>
                    </p>
                   <p>合计:<span class="orange">￥{{orderInfo.order_price}}</span></p>
                </a>
                <div class="total-state" ng-hide="orderInfo.status==4||orderInfo.status==5||orderInfo.status==3">
                   <button ng-if="orderInfo.status==1" ng-click="cancelOrder(orderInfo)">取消订单</button>
                   <button ng-if="orderInfo.status==2||orderInfo.status==6||orderInfo.status==7" ng-click="deleteOrder(orderInfo)">删除订单</button>
                   <!-- <button ng-if="orderInfo.status==3"  ng-click="cancelOrder(orderInfo)">申请退款</button> -->
                   <button class="greenC border-green" ng-if="orderInfo.status==1" style="padding:3px 20px;"  ui-sref="tab.userdetail({oneday:false,id:orderInfo.id})">去支付</button>
                </div>
            </div>
        </div>
        <!--row end-->

        <!--row-->
        <!--row end-->

        <!--row-->
        <!--row end-->
</ion-view>


